//
//  MenuViewController.h
//  Menu
//
//  Created by trimad on 11-11-11.
//  Copyright 2011 Trimad Group. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PageViewController;
@class TopCategoryButton;
@class SubCategoryButton;
@class Category;
@class Item;

/*
 * MenuViewController 是主框架的ViewController，负责创建，销毁，
 * 以及控制所有PageViewController及行为，并用手势，动画等操作来完成
 * 不同PageViewController（菜单页）之间的切换(lazyload +
 * selective preload),另见 PageViewController
 */
@interface MenuViewController : UIViewController<UIScrollViewDelegate> {
	UIScrollView *pageScrollView;
	UIImageView *subCategoryBarImageView;
	UILabel *topCategoryLabel;
	UIView *orderInHandView;
	UIView *searchView;
}

@property (nonatomic, retain) IBOutlet UIScrollView *pageScrollView;
@property (nonatomic, retain) IBOutlet UIImageView *subCategoryBarImageView;
@property (nonatomic, retain) IBOutlet UILabel *topCategoryLabel;
@property (nonatomic, retain) IBOutlet UIView *orderInHandView;
@property (nonatomic, retain) IBOutlet UIView *searchView;

-(void)jumpToPage:(int)pageIndex;

-(IBAction)orderSummaryClicked:(id)sender;
-(IBAction)searchButtonClicked:(id)sender;
-(IBAction)completeOrder:(id)sender;

@end

